package service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.StudentDao;
import po.Student;
import service.StudentService;

@Service
@Transactional //开启事务
public class StudentServiceImpl implements StudentService {
    
    @Autowired
    private StudentDao studentDao;

    public Student findStudentById(Integer id) {
        return this.studentDao.findStudentById(id);
    }

}
